package com.lwx;

import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author draem
 * @create 2018-06-28 11:28
 */


@SpringBootApplication
public class Application  {

    public static void main(String[] args) {


        LinkedHashMap<String,String> map =new LinkedHashMap();
        map.put("1","1");
        map.put("2","2");
        map.put("3","3");
        Iterator<Map.Entry<String, String>> iter = map.entrySet().iterator();
        while (iter.hasNext()){
            System.out.println(iter.next());

        }
        map.put("2","21");
        System.out.println("进行更新后");
        iter = map.entrySet().iterator();
        while (iter.hasNext()){
            System.out.println(iter.next());

        }
        System.out.println("accessorder=true");
        map =new LinkedHashMap(10, 0.75f, true);
        map.put("1","1");
        map.put("2","2");
        map.put("3","3");
        iter = map.entrySet().iterator();
        while (iter.hasNext()){
            System.out.println(iter.next());

        }
        map.put("2","21");
        map.get("1");
        System.out.println("进行更新后");
        iter = map.entrySet().iterator();
        while (iter.hasNext()){
            System.out.println(iter.next());

        }



        int a=6;
        int b =a++;
        System.out.println(a);
        System.out.println(b);




    }






    }
